package org.grow.authfilter.entity;

import lombok.Data;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.core.GrantedAuthority;

/**
 * @Author: xwg
 * @CreateDate: 21-7-20
 */


@Data
public class RoleInfo implements GrantedAuthority , ConfigAttribute {

    private Integer roleId;
//    核心字段
    private String roleName;

    private String roleText;

    private String description;

    @Override
    public String getAuthority() {
        return roleName;
    }

    @Override
    public String getAttribute() {
        return roleName;
    }
}
